import request from "@/utils/request";

export function addTopic(data) {
  return request({
    url: `/core/sub-knowledge/add`,
    method: "post",
    data,
  });
}
// 获取知识点列表
export function getTopicList(params) {
  return request({
    url: `/core/sub-knowledge/list`,
    method: "get",
    params,
  });
}
// 删除知识点
export function deleteTopicIds(ids) {
  return request({
    url: `/core/sub-knowledge/delete/${ids}`,
    method: "delete",
  });
}
// 修改知识点
export function editTopic(data) {
  return request({
    url: `/core/sub-knowledge/edit`,
    method: "put",
    data,
  });
}
